let update = new Vue({
    el:'#main-container',
    data:{
        app:{}
    },
    methods:{
        doUpdate:function () {
            axios({
                url:'manager/app/doUpdate',
                method:'put',
                data:this.app
            }).then(resp => {
                if(!resp.data.success){
                    parent.layer.success = false;
                }
                let index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
                parent.layer.msg(resp.data.msg);
            }).catch(error=>{
                parent.layer.success = false;
                layer.msg(error.message);
            })
        },
        close:function () {
            let index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        }
    },
    created:function () {
        this.app = parent.layer.obj;
    }
})